package extend;

import Fecse.Test;

public class TextMan {
    public static void main(String[] args){
        TextMan t = new TextMan();
        Man m = new Man();
        t.m1(m);
        t.m2(m);
        t.m3(m);
    }
    public void m1(Runner f) { f.run(); }
    public void  m2(Swimmer s) {s.swim();}
    public void  m3(Man a) {a.eat();}

}

